/**
 * 客户分配
 */

import request from '@/utils/request'

/**
 * 客户分配列表
 * @param data
 * @returns
 */
export const getCustomerList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/distribution/list',
    method: 'get',
    params: data
  })
}

/**
 * 导入客户明细
 * @param data
 * @returns
 */
export const getCustList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/distribution/cust/list',
    method: 'get',
    params: data
  })
}

/**
 * 为文件所有客户分配员工
 * @param data
 * @returns
 */
export const distributionFile = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/batch-assign-staff',
    method: 'post',
    data: data
  })
}

  /**
 * 修改群公告
 * @param data
 * @returns
 */
export const updateNotice = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/group/update/notice',
    method: 'post',
    data: data
  })
}
// 获取客户标签列表接口(新)
export const listTagNew = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/list-tag-new',
    method: 'get',
    params: data
  })
}
//获取客户群标签列表(新)
export const groupListTagNew = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/groupchat-tag/list-tag-new',
    method: 'get',
    params: data
  })
}
